Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 96fb1a4e2f97fecf95342424b9e6e88bbdecba89


Parents : f2d9711
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-04-08T03:19:38-05:00

chore(codebase) format

Changes
Diff

diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 42c3cb6a..7d8e4cd3 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -1,15 +1,15 @@
version: 2
updates:
- - package-ecosystem: npm
- directory: /
- schedule:
- interval: weekly
- open-pull-requests-limit: 10
- versioning-strategy: increase-if-necessary
- groups:
- electron:
- patterns:
- - electron
- - electron-*
- - "@electron/*"
- - "@electron-forge/*"
+ - package-ecosystem: npm
+ directory: /
+ schedule:
+ interval: weekly
+ open-pull-requests-limit: 10
+ versioning-strategy: increase-if-necessary
+ groups:
+ electron:
+ patterns:
+ - electron
+ - electron-*
+ - "@electron/*"
+ - "@electron-forge/*"

diff --git a/meshchatx/src/backend/nomadnet_downloader.py b/meshchatx/src/backend/nomadnet_downloader.py
index bf81ecca..ce725274 100644
--- a/meshchatx/src/backend/nomadnet_downloader.py
+++ b/meshchatx/src/backend/nomadnet_downloader.py
@@ -171,7 +171,9 @@ class NomadnetDownloader:
timeout_after_seconds = time.time() + link_establishment_timeout
- while link.status is not RNS.Link.ACTIVE and time.time() < timeout_after_seconds:
+ while (
+ link.status is not RNS.Link.ACTIVE and time.time() < timeout_after_seconds
+ ):
if self.is_cancelled:
return
await asyncio.sleep(_POLL_INTERVAL_S)
@@ -291,7 +293,11 @@ class NomadnetFileDownloader(NomadnetDownloader):
self.on_file_download_success(file_name, file_data)
return
- if isinstance(response, list) and len(response) > 1 and isinstance(response[1], dict):
+ if (
+ isinstance(response, list)
+ and len(response) > 1
+ and isinstance(response[1], dict)
+ ):
file_data: bytes = response[0]
metadata: dict = response[1]

diff --git a/meshchatx/src/backend/rnstatus_handler.py b/meshchatx/src/backend/rnstatus_handler.py
index 424408b2..a49d19b6 100644
--- a/meshchatx/src/backend/rnstatus_handler.py
+++ b/meshchatx/src/backend/rnstatus_handler.py
@@ -281,7 +281,9 @@ class RNStatusHandler:
ifstat["outgoing_announce_frequency"]
)
if "held_announces" in ifstat:
- formatted_if["held_announces"] = fmt_packet_count(ifstat["held_announces"])
+ formatted_if["held_announces"] = fmt_packet_count(
+ ifstat["held_announces"]
+ )
if "ifac_netname" in ifstat and ifstat["ifac_netname"] is not None:
formatted_if["network_name"] = ifstat["ifac_netname"]

diff --git a/meshchatx/src/frontend/components/nomadnetwork/NomadNetworkPage.vue b/meshchatx/src/frontend/components/nomadnetwork/NomadNetworkPage.vue
index 2b605b70..bb0d1215 100644
--- a/meshchatx/src/frontend/components/nomadnetwork/NomadNetworkPage.vue
+++ b/meshchatx/src/frontend/components/nomadnetwork/NomadNetworkPage.vue
@@ -451,11 +451,7 @@ export default {
return this.popoutRouteType === "nomad";
},
navbarPageStats() {
- if (
- this.lastPageLoadDurationMs == null ||
- this.lastPageContentBytes == null ||
- !this.selectedNodePath
- ) {
+ if (this.lastPageLoadDurationMs == null || this.lastPageContentBytes == null || !this.selectedNodePath) {
return null;
}
return {

diff --git a/meshchatx/src/frontend/components/rnstatus/RNStatusPage.vue b/meshchatx/src/frontend/components/rnstatus/RNStatusPage.vue
index 63720188..99da2674 100644
--- a/meshchatx/src/frontend/components/rnstatus/RNStatusPage.vue
+++ b/meshchatx/src/frontend/components/rnstatus/RNStatusPage.vue
@@ -31,9 +31,7 @@
/>
Refresh
</button>
- <label
- class="secondary-chip inline-flex cursor-pointer items-center gap-2 px-4 py-2 text-sm"
- >
+ <label class="secondary-chip inline-flex cursor-pointer items-center gap-2 px-4 py-2 text-sm">
<input v-model="includeLinkStats" type="checkbox" class="rounded" />
<span>Include Link Stats</span>
</label>
@@ -55,9 +53,7 @@
v-if="linkCount !== null"
class="rounded-xl border border-blue-200/80 bg-blue-50/90 p-4 text-blue-800 dark:border-blue-800/50 dark:bg-blue-950/30 dark:text-blue-200"
>
- <div class="text-sm font-semibold">
- Active Links: {{ formatInt(linkCount) }}
- </div>
+ <div class="text-sm font-semibold">Active Links: {{ formatInt(linkCount) }}</div>
</div>
<div
@@ -163,7 +159,9 @@
</div>
<div v-if="iface.clients !== undefined">
<div class="text-gray-500 dark:text-gray-400">Clients</div>
- <div class="font-semibold text-gray-900 dark:text-white">{{ formatInt(iface.clients) }}</div>
+ <div class="font-semibold text-gray-900 dark:text-white">
+ {{ formatInt(iface.clients) }}
+ </div>
</div>
<div v-if="iface.peers !== undefined">
<div class="text-gray-500 dark:text-gray-400">Peers</div>

diff --git a/scripts/build-backend.js b/scripts/build-backend.js
index b474851a..3f9f3dbc 100755
--- a/scripts/build-backend.js
+++ b/scripts/build-backend.js
@@ -95,11 +95,7 @@ try {
let spawnCmd = cmd;
let spawnArgs = args;
- const rosettaX64 =
- isDarwin &&
- arch === "x64" &&
- process.arch === "arm64" &&
- !process.env.PYTHON_CMD;
+ const rosettaX64 = isDarwin && arch === "x64" && process.arch === "arm64" && !process.env.PYTHON_CMD;
if (rosettaX64) {
spawnCmd = "arch";
spawnArgs = ["-x86_64", cmd, ...args];

diff --git a/tests/backend/test_nomadnet_downloader_boost.py b/tests/backend/test_nomadnet_downloader_boost.py
index 1179c778..88103f6d 100644
--- a/tests/backend/test_nomadnet_downloader_boost.py
+++ b/tests/backend/test_nomadnet_downloader_boost.py
@@ -119,7 +119,9 @@ async def test_download_uses_path_wait_cache_hit(downloader):
patch.object(RNS.Transport, "request_path"),
):
with patch.object(downloader, "link_established") as mock_established:
- await downloader.download(path_lookup_timeout=5, link_establishment_timeout=5)
+ await downloader.download(
+ path_lookup_timeout=5, link_establishment_timeout=5
+ )
mock_established.assert_called_once_with(mock_link)


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────